<?php $posts = $this->getPosts(); ?>
      <div class="title_page">
        <h3>Downlaods</h3>
      </div>
      <div class="normal">
        <div class="border1"><img src="<?php echo $this->getSkinUrl('images/border1_top.png')?>"/></div>
        <div class="box1_c">
          <div class="downloads">
            <h3 class="title_downloads">Downloads</h3>
            <div class="normal2">
              <div class="border2"></div>
              <div class="box2_c">
                <h1 class="step1">Simply click on the item you wish to download, then continue to step 2.</h1>
                <?php foreach ($posts as $post): ?>
                <dl class="list on">
                  <dt class="img_download" download="<?php echo $post->getId();?>"><img width="124" height="172" src="<?php echo Mage::getModel('imageresize/imagemodel')->init(Mage::getBaseUrl('media') . $post->getFilegallery())->resize(124,172);?>"/></dt>
                  <dd class="des_download"><?php echo $post->getTitle();?></dd>
                </dl>
                <?php endforeach;?>
                <div class="clearfloat"></div>
              </div>
              <div class="border2"></div>
            </div>
            <form action="<?php echo $this->getUrl('contacts/index/downloadpost');?>" method="post" id="download_form">
       		<input type="hidden" name="download_id" id="download_id" class="required-download" value="" />
            <div class="normal2">
              <div class="border2"></div>
              <div class="box2_c">
                <h1 class="step2">Please fill in your contact details below</h1>
                <table class="input_table" cellspacing="0" cellpadding="0">
                  <tr>
                    <th width="50%">Your Full Name</th>
                    <th width="50%">Your Email Address</th>
                  </tr>
                  <tr>
                    <td><input name="name" type="text" class="input2 required-entry" value=""></td>
                    <td><input name="email" type="text" class="input2 validate-email" value=""></td>
                  </tr>
                </table>
                <table class="input_table" cellspacing="0" cellpadding="0">
                  <tr>
                    <th width="50%">Your Telephone Number</th>
                    <th width="50%"></th>
                  </tr>
                  <tr>
                    <td><input name="telephone" type="text" class="input3" value=""></td>
                    <td><img src="<?php echo $this->getSkinUrl('images/gantan_blue.png')?>"/> <span>Optional, leave blank if you prefer</span></td>
                  </tr>
                </table>
                <table class="input_table" cellspacing="0" cellpadding="0">
                  <tr>
                    <th colspan="3">Your Postal Address <img src="<?php echo $this->getSkinUrl('images/gantan_blue.png')?>"/> <span>Optional, leave blank if you prefer</span></th>
                  </tr>
                  <tr>
                    <td colspan="3"><input name="address1" type="text" class="input4" value=""></td>
                  </tr>
                  <tr class="second_tr">
                    <td width="168"><input name="address2" type="text" class="input5" value=""></td>
                    <th  style="text-align:center">Your Postcode</th>
                    <td width="168"><input name="postcode" type="text" class="input6" value=""></td>
                  </tr>
                </table>
                <div class="clearfloat"></div>
              </div>
              <div class="border2"></div>
            </div>
            <div class="normal2">
              <div class="border2"></div>
              <div class="box2_c">
                <h1 class="step3">Which of these statements best applies to you...</h1>
                <table class="input_table" cellspacing="0" cellpadding="0">
                
                  <tr>
                    <td class="moni_td">
              <div tabindex="0" onclick="CoLeeSelect2(this)" class="moni_s downloads_step">
              <input type="text" value="Please select An Option..." class="select2 option_tip" name="statement" id="statement">
              <ul style="" class="Option">
                <li ><span>Test1</span></li>
                <li ><span>Test2</span></li>
                <li ><span>Test3</span></li>
              </ul>
            </div>
                    </td>
                  </tr>
                </table>
                
                <div class="clearfloat"></div>
              </div>
              <div class="border2"></div>
            </div>
            <div class="normal2">
              <div class="border2"></div>
              <div class="box2_c">
                <h1 class="step4">Almost done... please tick the box if you want our newsletter & start your download by pressing the green button</h1>
                <table class="input_table" cellspacing="0" cellpadding="0">
                
                    <td><input name="is_subscribed" type="checkbox" value="on" style="vertical-align:middle; width:15px;" > <span>I' d also like to recieve your newsletter</span>
                    </td>
                    <td align="right" class="bt_td"><input type="image" src="<?php echo $this->getSkinUrl()?>images/bt_download.png"/></td>
                  </tr>
                </table>
                
                <div class="clearfloat"></div>
              </div>
              <div class="border2"></div>
            </div>
            </form>
          </div>
        </div>
        <div class="border1"><img src="<?php echo $this->getSkinUrl()?>images/border1_bottom.png"/></div>
      </div>
  
